// 获取预约记录
export function getReservationListAysnc(token) {
	return uni.$http.get(`sub/list/${token}`)
}

//获取预约记录详情
export function getReservationDetailsAsync(id) {
	return uni.$http.get(`sub/detail/${id}`)
}

// 房间申请
export function applyRoomAsync(params) {
	return uni.$http.post('sub/apply', params)
}
// 查看房间占用情况
export function getRoomStateAsync(params) {
	return uni.$http.post('sub/sublist', params)
}
// 获取房间信息
export function getRoomAsync(params) {
	return uni.$http.post('room/detail', params)
}
